<template>
	<view>
		<!-- #ifdef MP-WEIXIN -->
		<vInput></vInput>
		<!-- #endif -->
		<ShopList :keyword="keyword"></ShopList>
	</view>
</template>

<script>
	import ShopList from '@/components/common/ShopList.vue'
	import vInput from '../../components/common/input.vue'
	export default {
		data() {
			return {
				keyword:''
			}
		},
		onLoad(e){
			this.keyword=e.keyword
			// #ifdef APP-PLUS  
			var webView = this.$mp.page.$getAppWebview(); 
			webView.setTitleNViewSearchInputText(e.keyword)  
			// #endif
			// #ifdef H5
			    let inputSearch=document.querySelector('.uni-input-input[type=search]');
			    var evt = new InputEvent('input', {
			        inputType: 'insertText',
			        data: e.keyword,
			        dataTransfer: null,
			        isComposing: false
			    });
			    if(inputSearch){
			        inputSearch.value = e.keyword;
			        inputSearch.dispatchEvent(evt);
			    }
			// #endif
			
		},
		components:{
			ShopList,
			vInput
		},
		methods: {
			
		}
	}
</script>

<style>
</style>
